#!/bin/bash
i_city=$1 || i_city=1
i_cate=$2 || i_cate=1
i_day=$3 || i_day=1
gday=`date --date="${i_day} days ago" +%F`
echo "start optimize city ${i_city} cate ${i_cate}"
/root/anaconda3/envs/disp/bin/python 2.1.gen_orders.py ${i_city} ${i_cate} ${i_day} > /data/logs/disp/${gday}/gen_orders_${i_city}_${i_cate}.log
sleep 1
/root/anaconda3/envs/disp/bin/python 2.2.gen_artisans.py ${i_city} ${i_cate} ${i_day} > /data/logs/disp/${gday}/gen_artisans_${i_city}_${i_cate}.log
sleep 1
nohup /root/anaconda3/envs/disp/bin/python _3_3_run_deap.py ${i_city} ${i_cate} ${i_day} > /data/logs/disp/${gday}/run_v3_${i_city}_${i_cate}.log 2>&1 &
